import './index.scss'
import { stageInit } from "./CreateJSHelper";
import Main from "./Main";
const canvas=document.getElementById('GameCanvas') as HTMLCanvasElement
//GameControl.getInstance().init(canvas)
const onresize=(e?:Event)=>{
    //console.log(window.innerWidth,window.innerHeight)
    canvas.width=canvas.clientWidth
    canvas.height=canvas.clientHeight
    /*canvas.width=750/2
    canvas.height=1334/2*/
}
window.addEventListener('resize',onresize)
onresize()
const stage=stageInit(canvas,60,true,false)
const main=new Main()
stage.addChild(main)